<template>
  <div class="wrapper">
    <a-component />
    <b-component />
  </div>
</template>

<script>
import AComponent from './AComponent.vue'
import BComponent from './BComponent.vue'
export default {
  name:"EventBus",
  components:{AComponent, BComponent},
  props:{},
  data(){
    return {
      msg:"父组件的消息"
    }
  },
  watch:{},
  computed:{},
  methods:{},
  created(){},
  mounted(){
        console.log(this.$children);
    console.log(this.$children[0].msg);
  }
}
</script>
<style scoped>
.wrapper{}
</style>